package io.polly.ldz.reactor.security;

import org.springframework.security.authentication.AuthenticationDetailsSource;
import org.springframework.security.web.authentication.WebAuthenticationDetails;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @author liqin@101.com
 * @version V1.0
 * @title: DigestWebAuthenticationDetailsSource
 * @description: todo add description
 * @date: 2023/11/28 14:52
 */
@Component
public class DigestWebAuthenticationDetailsSource implements AuthenticationDetailsSource<HttpServletRequest, WebAuthenticationDetails> {
    @Override
    public WebAuthenticationDetails buildDetails(HttpServletRequest httpServletRequest) {
        return new DigestWebAuthenticationDetails(httpServletRequest);
    }
}
